﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataModel;

namespace SCM.Logic
{
    public partial class M_SupplierBll
    {
        public bool IsSupplier(string strSupplierNO, string strPassword)
        {
           
            var supplierInst = M_Supplier.SingleOrDefault(x => x.Code == strSupplierNO && x.Password == strPassword);
            if (supplierInst == null)
            {
                return false;
            }
            else
                return true;
        }
    }
}
